import axios from "axios";


const basUrl = '';

export function get(url) {

  return function (params = {}) {
    return axios.get(basUrl + url, { params }).then(res => {
      const { errno, data } = res.data
      if (errno === 0) {
        return data
      }
    }).catch(err => {
      console.log(err);
    })
  } 
}
